package com.weixin.engine.models.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixin.common.dto.UserDTO;
import com.weixin.engine.models.pojo.User;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @Author: WangChunHui
 * @Date: 2020-04-16 22:37
 * @Description:
 */
public interface UserService extends IService<User> {
    /**
     * 查询所有
     */
    List<User> findAll();

    User findById(Long id);

    void add(User user);

    void update(User user);

    void delById(Long id);

    Page<User> selectByCondition(User user, int page, int size);

    String paymentCircuitBreaker(Integer id);

    void excelExport(HttpServletResponse response) throws IOException;

    Page<User> pageList(UserDTO userDTO);
}
